<?php
namespace app\common\component\help_to;

class HelpToModel extends \think\Model {
	protected $table = 'league_help_to'; 

	public function getStatusAttr($value) {
		$status = [
			0 => '排队中',
			1 => '<span style="color: red">打款中</span>',
			2 => '<span style="color: purple">确认收款中</span>',
			3 => '未收到款',
			4 => '<span style="color: blue">打款完成</span>',
			8 => '订单取消'
		];
		return $status[$value];
	}

	public function getHelpGetFromAttr($value) {
		$from = [
			0 => '匹配',
			1 => '抢单'
		];
		return $from[$value];
	}
}
?>